﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynamicTest
{


    /// <summary>
    /// 
    /// </summary>
    public class PrinterConfig
    {
        public string Ip;
        public int Port;

        public GruppenConfig Gruppe1;
        public GruppenConfig Gruppe2;

        /// <summary>
        /// Initializes a new instance of the <see cref="PrinterConfig"/> class.
        /// </summary>
        public PrinterConfig()
        {
            this.Gruppe1 = new GruppenConfig();
            this.Gruppe2 = new GruppenConfig();
        }

        /// <summary>
        /// Returns a <see cref="System.String"/> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> that represents this instance.
        /// </returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat("PrinterIp: \"{0}\" \r\n", this.Ip);
            sb.AppendFormat("PrinterPort: \"{0}\" \r\n", this.Port.ToString());
            sb.AppendFormat("PrinterGruppe1:\r\n{0}", this.Gruppe1.ToString("   "));
            sb.AppendFormat("PrinterGruppe2:\r\n{0}", this.Gruppe2.ToString("   "));
            sb.Append("\r\n");
            return sb.ToString();
        }

    }

}
